package com.zbl.springdemo.spi;

import java.util.ServiceLoader;

/**
 * @author zbl1997
 * @date 2022/8/13
 * @desc
 */
public class SpiDemo {
    public static void main(String[] args) {
        ServiceLoader<SpiDemoService> testClass = ServiceLoader.load(SpiDemoService.class);
        for (SpiDemoService test : testClass) {
            test.hello();
        }
    }
}
